package com.resource.project.controller.system;

import com.resource.project.entity.system.Menu;
import com.resource.project.service.system.service.IMenuService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Api(tags = "菜单管理")
public class MenuController {

    @Autowired
    private IMenuService menuService;
    @GetMapping("/system/menu")
    public List<Menu> getMenus(String id){
        List<Menu> list = menuService.getMenusByHrId();
        return list;
    }
}
